package net.zrnecko.km.server;

import net.zrnecko.km.client.GreetingService;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class GreetingServiceImpl implements GreetingService {

	/*
	private final AnInterface anInterface;

	  // Guice injection here!
	  @Inject
	  public MyServiceImpl(AnInterface anInterface) {
	    this.anInterface = anInterface;
	  }
	  */

	public String greetServer(String input) {
//		String serverInfo = getServletContext().getServerInfo();
//		String userAgent = getThreadLocalRequest().getHeader("User-Agent");
		return "Hello, " + input + "!<br><br>I am running " // + serverInfo
				+ ".<br><br>It looks like you are using:<br>"; // + userAgent;
	}
}
